]> dgit.raspbian.org Git - gnome-shell.git/commit
extensions: Unify how manager is injected into shared module
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 9 Jul 2023 10:47:05 +0000 (12:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 15 Jul 2023 11:16:42 +0000 (13:16 +0200)
commit1354d2cf56d172ceeb45221d2812e42912bc9b4f
treea18c966dedd9b9fcc15931729d5b23a26dd61b49
parent3006c05ea5d353c2f62238b6c2c3912619128566
extensions: Unify how manager is injected into shared module

We unified most code paths earlier, but the common code will still
import Main locally if no extension manager was injected before.

Now that the old extensionUtils was split between extension and
preferences, each of those modules can simply import the manager
from its corresponding environment, and then inject it into the
shared module.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2837>
js/dbusServices/extensions/extensionsService.js
js/extensions/extension.js
js/extensions/prefs.js
js/extensions/sharedInternals.js